package com.cnfangmao.masterdata.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 用户主数据权限表
 * </p>
 *
 * @author chenxd
 * @since 2020-04-14
 */
@TableName("t_account_basic_data_right")
public class AccountBasicDataRight implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户主数据权限Id
	 */
	@TableId(value = "right_id")
	private String rightId;
	
	/**
	 * 用户Id
	 */
	@TableField("user_id")
	private String userId;
	
	/**
	 * 主数据元数据Id
	 */
	@TableField("metadata_id")
	private String metadataId;
	
	/**
	 * 权限集合（进行与运算） 1:新建 2:删除 4:修改 8:发布 16:订阅 32:合并
	 * 
	 */
	@TableField("right_list")
	private Integer rightList;
	
	/**
	 * 创建时间
	 */
	@TableField("created_on")
	private Date createdOn;
	/**
	 * 创建人
	 */
	@TableField("created_by")
	private String createdBy;
	
	/**
	 * 修改时间
	 */
	@TableField("modified_on")
	private Date modifiedOn;
	
	/**
	 * 修改人
	 */
	@TableField("modified_by")
	private String modifiedBy;

	public String getRightId() {
		return rightId;
	}

	public void setRightId(String rightId) {
		this.rightId = rightId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getMetadataId() {
		return metadataId;
	}

	public void setMetadataId(String metadataId) {
		this.metadataId = metadataId;
	}

	public Integer getRightList() {
		return rightList;
	}

	public void setRightList(Integer rightList) {
		this.rightList = rightList;
	}

	public Date getCreatedOn() {
		return createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getModifiedOn() {
		return modifiedOn;
	}

	public void setModifiedOn(Date modifiedOn) {
		this.modifiedOn = modifiedOn;
	}

	public String getModifiedBy() {
		return modifiedBy;
	}

	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	@Override
	public String toString() {
		return "AccountBasicDataRight{" + "rightId=" + rightId + ", userId=" + userId + ", metadataId=" + metadataId
				+ ", rightList=" + rightList + ", createdOn=" + createdOn + ", createdBy=" + createdBy + ", modifiedOn="
				+ modifiedOn + ", modifiedBy=" + modifiedBy + "}";
	}
}
